package com.zcb.myrxjavathreecache.tools;

/**
 * Created by asus on 2016/12/25.
 */

public class CityTool {
    private static final int FU_ZHOU=53;
    private static final int XIA_MEN=60;
    private static final int SHEN_ZHEN=77;
    private static final int GUANG_ZHOU=76;
    private static final int HANG_ZHOU=383;
    private static final int QING_DAO=284;
    private static final int CHANG_SHA=197;
    private static final int JI_NAN=283;
    private static final int BEI_JING=52;
    private static final int NAN_JING=220;


    public int getCityId(String cityName){
        int cityid=0;
        switch (cityName){
            case "福州" :
                cityid=FU_ZHOU;
                break;
            case "厦门" :
                cityid=XIA_MEN;
                break;
            case "深圳" :
                cityid=SHEN_ZHEN;
                break;
            case "广州" :
                cityid=GUANG_ZHOU;
                break;
            case "杭州" :
                cityid=HANG_ZHOU;
                break;
            case "青岛" :
                cityid=QING_DAO;
                break;
            case "长沙" :
                cityid=CHANG_SHA;
                break;
            case "济南" :
                cityid=JI_NAN;
                break;
            case "北京" :
                cityid=BEI_JING;
                break;
            case "南京" :
                cityid=NAN_JING;
                break;

        }
    return cityid;
    }


}
